﻿using System.Diagnostics;
using System.Diagnostics.Contracts;
using System.IO;

namespace OpenLS.Spreadsheet.Formats.Biff.Records
{
    internal class FtGmo
    {
        private ushort _unused;

        public void Read(BinaryReader reader)
        {
            ushort ft = reader.ReadUInt16();
            Contract.Assert(ft == 0x0006);
            ushort cb = reader.ReadUInt16();
            Contract.Assert(cb == 0x0002);
            _unused = reader.ReadUInt16();
        }

        public void Write(BinaryWriter writer)
        {
            ushort ft = 0x0006;
            writer.Write(ft);
            ushort cb = 0x0002;
            writer.Write(cb);
            writer.Write(_unused);
        }
    }
}